extends layout

block content
    each post in posts
        .post
            h3.post-title
                a(href="/posts/view/" + post._id, target="_blank")   
                    =post.title  
            .post-abstact
                =post.content
            .post-mata
                span.post-created.post-padding
                    发布时间:
                    =moment(post.created).format('YYYY-MM-DD')
                span.post-author.post-padding
                    作者:
                    =post.author.name
                span.post-category.post-padding
                    分类:
                    =post.category.title
                span.post-comment.post-padding
                    评论:
                    =post.comments.length || 0
                span.post-favorite.post-padding
                    被赞:
                    =post.meta.favorite || 0  
                span.post-link.post-padding
                    a(href="/posts/view/" + post._id, target="_blank") 查看全文                          